package cn.b.sky.user.service.model.condition;

import cn.b.sky.common.model.Page;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LoginLogCondition extends Page {
  /**
   * IP地址:nvarchar2(40)
   */
  private String ipAddress;

  /**
   * Mac地址:nvarchar2(40)
   */
  private String macAddress;

  /**
   * 用户编号:nvarchar2(40)
   */
  private String userCode;

  /**
   * 用户描述:nvarchar2(60)
   */
  private String userText;

  /**
   * 登录状态（OK，FAIL）:nvarchar2(10)
   */
  private String status;

  /**
   * 登录时间起
   */
  private Date fromDateTime;

  private String fromDateTimeStr;

  /**
   * 登录时间止
   */
  private Date toDateTime;

  private String toDateTimeStr;

  private Date now;

  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

  public String getFromDateTimeStr() {
    return fromDateTimeStr;
  }

  public void setFromDateTimeStr(String fromDateTimeStr) {
    this.fromDateTimeStr = fromDateTimeStr;
  }

  public String getToDateTimeStr() {
    return toDateTimeStr;
  }

  public void setToDateTimeStr(String toDateTimeStr) {
    this.toDateTimeStr = toDateTimeStr;
  }

  public String getIpAddress() {
    return ipAddress;
  }

  public void setIpAddress(String ipAddress) {
    this.ipAddress = ipAddress;
  }

  public String getMacAddress() {
    return macAddress;
  }

  public void setMacAddress(String macAddress) {
    this.macAddress = macAddress;
  }

  public String getUserCode() {
    return userCode;
  }

  public void setUserCode(String userCode) {
    this.userCode = userCode;
  }

  public String getUserText() {
    return userText;
  }

  public void setUserText(String userText) {
    this.userText = userText;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Date getFromDateTime() {
    return fromDateTime;
  }

  public void setFromDateTime(Date fromDateTime) {
    this.fromDateTime = fromDateTime;
  }

  public Date getToDateTime() {
    return toDateTime;
  }

  public void setToDateTime(Date toDateTime) {
    this.toDateTime = toDateTime;
  }

  public Date getNow() {
    return now;
  }

  public void setNow(Date now) {
    this.now = now;
  }

}
